<form action="{:U('Common/addCommon')}" method="post" class="form-horizontal">
    <div class="form-item">
        <label class="item-label">尺寸<span class="check-tips">（多个请用英文状态下的","隔开）</span></label>
        <div class="controls">
            <input type="text" class="text input-large" name="name" value="{$data.name|default=''}">
        </div>
    </div>
    
    <div class="form-item">
        <label class="item-label">库存<span class="check-tips">（库存与尺寸一一对应，多个请用英文状态下的","隔开）</span></label>
        <div class="controls">
            <input type="text" class="text input-large" name="num" value="{$data.num|default=''}">
        </div>
    </div>
    <div class="form-item">
        <input type="hidden" name="table" value="size">
        <input type="hidden" name="methods" value="current">
        <input type="hidden" name="gid" value="{$id|default=0}">
        <input type="hidden" name="fields" value="name,text;num,text;gid,text">
        <input type="hidden" name="id" value="{$data.id|default=0}">
        <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
        <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
    </div>
</form>

